<?php 
	include "connect.php";
	
	$id=$_POST[id]; //중복된 아이디 등록 안 되도록
	$pw=$_POST[pw];
	$nick=$_POST[nick];
	$college=$_POST[college];
	$dept=$_POST[dept];

	$query = "INSERT INTO member (id, pw, nick, college, dept) VALUES ('$id','$pw','$nick','$college','$dept')";			
	if(!mysql_query($query,$connect)) die('Error: '. mysql_error());

	mysql_close($connect);
			
	header("Location: welcome.php");
	exit;
?>